package bitSet;

import java.util.Arrays;
import java.util.BitSet;

public class Test {
    public static void main(String[] args) {
        MyBitSet set = new MyBitSet();
        MyBitSet set2 = new MyBitSet(5);

        int[] array = {5, 18, 15, 7, 14, 36};
        for (int tmp : array) {
            set.set(tmp);
        }
        for (int tmp : array) {
            System.out.print(set.get(tmp) + " ");
        }
        System.out.println();
//        for (int tmp : array) {
//            set.reSet(tmp);
//            System.out.print(set.get(tmp) + " ");
//        }
//        System.out.println(set.getUsedSize());
        int[] sort = set.sort();
        System.out.println(Arrays.toString(sort));

    }
}
